package cn.xinfei.xdecision;

import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, MongoAutoConfiguration.class})
@EnableTransactionManagement
@ComponentScan(basePackages = "cn.xinfei.xdecision.**")
@EnableAsync
@EnableRetry
@EnableMethodCache(basePackages = "cn.xinfei.xdecision")
@EnableCreateCacheAnnotation
@EnableDiscoveryClient
@EnableFeignClients
public class XDecisionDataServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(XDecisionDataServerApplication.class, args);
    }

}
